package Bot

import (
	"os"
	"os/exec"
	"runtime"
)

// 打印菜单，根据id去打印，假设id=1，就打印第一个菜单
func Menu(id int) {
	switch id {
	case 0:
		Go_Box_menu()
	case 1:
		clearLog()
		alemon_bot_menu()
	case 2:
		clearLog()
		TRSS_YunZai_menu()
	case 3:
		clearLog()
		YunZaiBot_menu()
	}
}

func clearLog() {
	var cmd *exec.Cmd
	if runtime.GOOS == "windows" {
		cmd = exec.Command("cmd", "/c", "cls")
	} else {
		cmd = exec.Command("clear")
	}
	cmd.Stdout = os.Stdout
	cmd.Run()
}
